package com.cyys.common.thirdInterface.wx.config;

public class WxConfig {
	public final static String AUTHORIZATION_CODE = "authorization_code";

	// 签名方式
	public static final String SIGN_TYPE = "MD5";
	// 交易类型
	public static final String TRADE_TYPE = "JSAPI";

	public final static String WX_URL = "https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code";

	// 支付成功后的服务器回调url
	public static final String NOTIFY_URL = "http://220.197.219.244:8888/general/payOrder";

	// 微信统一下单接口地址
	public static final String PAY_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";

	// 微信支付结果接口地址
	public static final String PAY_QUERY_URL = "https://api.mch.weixin.qq.com/pay/orderquery";

	// 小程序二维码生成地址B接口，无限制
	public static final String WXACODE_URL_B = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=ACCESS_TOKEN";

	// 小程序二维码生成地址B接口，限制100000个
	public static final String WXACODE_URL_C = "https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=ACCESS_TOKEN";
	
	// 小程序TOKEN获取地址
	public static final String TOKEN_URL =  "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

	// 小程序发送订阅消息地址
	public static final String WX_SENDMESSAGE_URL = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=ACCESS_TOKEN";
	
	/*退款资金来源，仅针对老资金流商户使用
	REFUND_SOURCE_UNSETTLED_FUNDS---未结算资金退款（默认使用未结算资金退款）
	REFUND_SOURCE_RECHARGE_FUNDS---可用余额退款
	*/
	public static final String REFUND_ACCOUNT = "REFUND_SOURCE_UNSETTLED_FUNDS";
	
	// 微信申请退款接口地址
	public static final String REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";
	
	// 退款结果通知url
	public static final String REFUND_NOTIFY_URL = "http://220.197.219.244:8888/general/refundNotify";

	// 退款证书地址
	public static final String REFUND_APICLIENT_CERT = "apiclient_cert.p12";

	// 内容审核
	public static final String MSG_SEC_CHECK="https://api.weixin.qq.com/wxa/msg_sec_check?access_token=MSG_SEC_CHECK";
}
